package com.itheima.d5_enum;

public class Test {
    public static void main(String[] args) {
        Test c = new Test();
        c.run(Season.SPRING);
    }
    public void run(Season season){
        switch (season){
            case SPRING:
                System.out.println("春天");
                break;
            case SUMMER:
                System.out.println("夏天");
                break;
            case FALL:
                System.out.println("秋天");
                break;
            case WINTER:
                System.out.println("冬天");
                break;
            default:
                System.out.println("没有");
        }
    }
}

enum Season{
    //第一行罗列对象名称
    SPRING,
    SUMMER,
    FALL,
    WINTER;
}